package com.jic.order.controller.feign;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.order.api.DistributionApi;
import com.jic.order.manage.request.OrderDistributionMemberRequest;
import com.jic.order.manage.response.OrderDistributionMembertResponse;
import com.jic.order.service.OrderParentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"Feign-分销接口"})
@RequestMapping(value = "/feign/distribution")
@RestController
public class DistributionFeign implements DistributionApi {

	@Autowired
	OrderParentService orderParentService;

	@Override
	@PostMapping("/queryOrderDistributionListPage")
	public RestResult<PageResult<OrderDistributionMembertResponse>> queryOrderDistributionListPage(OrderDistributionMemberRequest request) {
		return orderParentService.queryOrderDistributionListPage(request);
	}
}
